package cn.hzking.gjmall.utils;

import android.graphics.Color;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.style.ForegroundColorSpan;

/**
 * Created by Administrator on 2018/3/28.
 */

public class StringUtils {

    public static SpannableStringBuilder setColor(String vaule){
        SpannableStringBuilder spannable = new SpannableStringBuilder(vaule);
        spannable.setSpan(new ForegroundColorSpan(Color.RED),0,4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
       return spannable;
    }
}
